package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.utils.to.SkuReductionTo;
import com.atguigu.common.utils.to.SpuBoundTo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/smsspubounds/save")
    R spuBoundsSave(@RequestBody  SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/smsskufullreduction/saveReduction")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
